import React from "react";
import "./index.less";

export default function ListCard({ data = {}, detailClick = () => {} }: any) {
  
	return (
		<div className="myListCard_contarnier">
			<div
				className="lc_imgBox"
				onClick={() => detailClick(data)}>
				<img
					src={data?.img || ""}
					alt=""
				/>
			</div>
			<div
				className="lc_content"
				onClick={() => detailClick(data)}>
				<div className="lc_c_title">
					<span>{data?.title}</span>
				</div>
				<div className="lc_c_type">
					<span>{data?.sendType || ""}</span>&nbsp;|&nbsp;
					<span>{data?.startTime || ""}</span>
				</div>
			</div>
			<div
				className="lc_application"
				style={data?.whetherOverdue == 0 ? { background: "#dbdbdb" } : {}}>
				{data?.whetherOverdue == 0 ? '已结束' : '已报名'}
			</div>
		</div>
	);
}
